const FAV_KEY = 'favSet'

export function getFavSet() {
  return new Set(JSON.parse(localStorage.getItem(FAV_KEY) || '[]'))
}

export function saveFavSet(set) {
  localStorage.setItem(FAV_KEY, JSON.stringify(Array.from(set)))
}
